﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Subject.cs" company="ELEN 7045 GROUP II">
//   Contributed by E.Vosloo
// </copyright>
// <summary>
//   The Subject class of the StudyDefinition entity module.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Domain.StudyDefinition.Entities
{
    /// <summary>
    /// The Subject class of the Study definition entity module.
    /// </summary>
    public class Subject
    {
        #region Properties

        /// <summary>
        /// Gets or sets the id of the subject.
        /// </summary>
        /// <value>
        /// The id of the subject.
        /// </value>
        public int Id { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether this instance is primary.
        /// </summary>
        /// <value>
        /// <c>true</c> if this instance is primary; otherwise, <c>false</c>.
        /// </value>
        public bool IsPrimary { get; set; }

        /// <summary>
        /// Gets or sets the special identification of the subject.
        /// </summary>
        /// <value>
        /// The special identification subject.
        /// </value>
        public string SpecialIdentification { get; set; }

        #endregion

        #region Public Methods

        /// <summary>
        /// Makes the subject primary.
        /// </summary>
        public void MakePrimary()
        {
            this.IsPrimary = true;
        }

        #endregion
    }
}
